package com.xiaocikuai.smallchunks.entity.Card;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("card_chunks")
public class CardChunks implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "cid", type = IdType.AUTO)
    private Integer cid;

    /**
     * 关联单词id
     */
    @TableField("word_id")
    private Integer wordId;

    /**
     * 正面
     */
    @TableField("front")
    private String front;

    /**
     * 反面
     */
    @TableField("back")
    private String back;

    /**
     * 正面高亮
     */
    @TableField("front_hl")
    private String frontHl;

    /**
     * 反面高亮
     */
    @TableField("back_hl")
    private String backHl;

    /**
     * 产品ID
     */
    @TableField("product_id")
    private Integer productId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;

    @TableField("speech")
    private String speech;

    @TableField("classes")
    private Integer classes;

    @TableField(exist = false)
    private Integer isCollect;

    @TableField(exist = false)
    private Integer isCorrect;

    @TableField(exist = false)
    private List<WordList> wordLists;


}
